package com.seafwg.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * @Author seafwg
 * @Date 2022/3/23 11:04 上午
 * @Version 1.0
 * @description xxx
 */

public class MyFilter implements Filter {
    @Override
    public void doFilter(
            ServletRequest servletRequest,
            ServletResponse servletResponse,
            FilterChain filterChain
    ) throws IOException, ServletException {

        System.out.println("使用了Servlet中的Filter对象");

        filterChain.doFilter(servletRequest, servletResponse);

    }
}
